from rest_framework import serializers
from question.models import *


class ReplySerializer(serializers.ModelSerializer):
    class Meta:
        model = Reply

        fields = '__all__'

        # def validate(self, attrs):
        #     if attrs['type'] == (0 or 1):
        #         attrs['parent'] = None
        #
        #     elif attrs['type'] == 2:
        #         pass
        #
        #     return attrs
